package collection.enumTest;
 
import java.util.EnumMap;
import java.util.EnumSet;
 

/**
 * 基本枚举测试
 * 
 * @author lcx
 */
public class BasicEnumTest {
 
    /**
      * @param args
      */
    public static void main(String[] args ) {
 
       System. out .println( "演示枚举遍历  ......" );
       testTraversalEnum ();
    }
 
    /**
      * 测试枚举的遍历
      */
    private static void testTraversalEnum() {
       LightEnum[] allLight = LightEnum.values ();
       for (LightEnum aLight : allLight) {
           System. out .println( "name " + aLight.name());
           System. out .println( "ordinal " + aLight.ordinal());
           System. out .println( " " + aLight);
       }
    }
 
}
 